/* pages/main/home/home.wxss */

.header{
  background-color: #1fc6a0;
  color: #fff;
  padding:15px;

  .toolBar{
    display: flex;
    align-items: center;

    .logoImg{
      height: 50px;
      width: 50px;
      background-size: cover ;
      background-color: #fff;
      border-radius: 50%;
      border:1px solid #fff;
    }

    .titles{
      padding-left: 10px;
      .sysTitle{
        font-weight: bold;
        font-size: 1.2em;
      }
    }
  }
}

.body{
  padding: 15px;
}

.barn{
  margin-bottom: 20px;
  .barnPan{
    height: 40px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
    .title{
      font-weight: bold;
      color: #0d8d6f;
      border-left: 2px solid #0d8d6f;
      padding-left: 10px;
    }
  }

  .devices{
    .dev{
      margin-bottom: 15px;
      background-color: #fff;
      display: flex;
      align-items: center;
      padding:10px;
      position: relative;

      .leftImg{
        width: 80px;
        height: 80px; 
        border-radius: 8px;
        background-size: cover;
        background-position:center ;
      }
      .rightIcon{
        width: 24px;
        height: 24px;
        margin-top: 15px;
      } 
      .devData{
        flex: 1;
        padding: 0 10px;
        .title{
          font-weight: bold;
          color: #444;
          height: 60px;
          line-height: 60px;
          padding-left: 15px;
        }
        .info{            
          display: flex;
          justify-content: space-between;
          align-items: center;
          font-size: 0.85em;
          .item{
            flex:1;
            .lab{
              padding:5px 0;
              text-align: center;
            }
            .data{
              text-align: center;
            }
          }
        }
      }
      .status{
        position: absolute;
        right: 80px;
        top: 10px;
        font-size: 0.85em;
        padding:5px 10px;
        border-radius: 5px;
        background-color: #bbb;
        color:#fff;
      }
      .status.active{
        background-color: #1fc6a0;
      }
      .led{
        position: absolute;
        right: 10px;
        top: 10px;
        font-size: 0.85em;
        padding:5px 10px;
        border-radius: 5px;
        background-color: rgb(212, 13, 73);
        color:#fff;
      }
      .led.on{
        background-color: #046d1e;
      }
    }
  }
}